<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
　<link rel="stylesheet" href="../css/style.css" type="text/css"> 


</head>
<script type="text/javascript">
function checkInfo(f){
	 var bb=document.getElementById("a1");
if(f.name.value==''){
        
         bb.style.display="block";
       f.name.focus();
     return false;
 }
bb.style.display="none";
   return true;
  }
</script>
<body>
	<div style="text-align: center;">
		<h3 >用户注册</h3>
	<div>
	<form action="UserInfo.jsp" method="post" onsubmit="return checkInfo(this)">
		<div class="top1">用户名:<input type="text" name="username" id="username" style="height: 25px; width: 250px"><span id="a1">*</span></div>
		<div class="top1">密    码:<input type="password" name="password" id="password" style="height: 25px; width: 250px"><span id="a1">*</span></div>
		
		<div>
		
				信息来源：<input type="checkbox" name="ways" value="报刊">报刊
				<input type="checkbox" name="ways" value="网络">网络
				<input type="checkbox" name="ways" value="电视">电视
				<input type="checkbox" name="ways" value="报刊">报刊
				
		</div>
		<div>
			 <input type="submit" class="btn" name="btnRegist" value="注册">
		</div>
		</form>
	</div>
	</div>
	
</body>
</html>